package cate.common.table.farm.forbidden.row.fm;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "混沌之地挑战奖励")
public class FMRewardRow extends ERow implements RWItem {

    @NoteField(value = "奖励ID")
    public int tid;

    @NoteField(value = "奖励内容")
    public String rwdStr;

    @NoteField(value = "*权重")
    public double weight;

    @NoteField(value = "奖励分组")
    public int group;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("奖励ID", 0);
        this.tid = xrw.getInteger("奖励ID", 0);
        this.rwdStr = xrw.getString("奖励内容");
        this.weight = xrw.getInteger("*权重",0);
        this.group = xrw.getInteger("奖励分组",0);

    }

    @Override
    public double getWeight() {
        return weight;
    }
}
